package com.paypal.android.MEP.a;

import android.content.Context;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.GradientDrawable.Orientation;
import android.os.Build;
import android.os.Build.VERSION;
import android.telephony.TelephonyManager;
import android.text.util.Linkify;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.paypal.android.MEP.e;
import com.paypal.android.a.c;
import com.paypal.android.a.f;
import com.paypal.android.a.g;
import com.paypal.android.a.q;
import com.paypal.android.a.r;

public final class n extends com.paypal.android.b.n
  implements View.OnClickListener
{
  private Button a;

  public n(Context paramContext)
  {
    super(paramContext);
  }

  protected final void a(Context paramContext)
  {
    super.a(paramContext);
    setId(9006);
    LinearLayout localLinearLayout1 = new LinearLayout(paramContext);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
    localLinearLayout1.setBackgroundDrawable(f.a());
    localLinearLayout1.setPadding(10, 5, 10, 5);
    localLinearLayout1.setGravity(1);
    localLinearLayout1.addView(new com.paypal.android.b.j(com.paypal.android.a.j.a("ANDROID_help"), paramContext));
    LinearLayout localLinearLayout2 = new LinearLayout(paramContext);
    localLinearLayout2.setOrientation(1);
    localLinearLayout2.setLayoutParams(new RelativeLayout.LayoutParams(-1, -2));
    localLinearLayout2.setPadding(0, 0, 0, 15);
    GradientDrawable localGradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] { -1, -1510918, -1510918, -1510918, -1510918, -1510918 });
    localGradientDrawable.setCornerRadius(10.0F);
    localGradientDrawable.setStroke(2, -8280890);
    localLinearLayout2.setBackgroundDrawable(localGradientDrawable);
    TextView localTextView1 = q.a(r.a, paramContext);
    localTextView1.setText(com.paypal.android.a.j.a("ANDROID_about_paypal"));
    localLinearLayout2.addView(localTextView1);
    TextView localTextView2 = q.a(r.b, paramContext);
    localTextView2.setText(com.paypal.android.a.j.a("ANDROID_help_string"));
    Linkify.addLinks(localTextView2, 1);
    localLinearLayout2.addView(localTextView2);
    TextView localTextView3 = q.a(r.a, paramContext);
    localTextView3.setText(com.paypal.android.a.j.a("ANDROID_sign_up"));
    localLinearLayout2.addView(localTextView3);
    TextView localTextView4 = q.a(r.b, paramContext);
    localTextView4.setText(com.paypal.android.a.j.a("ANDROID_no_account"));
    Linkify.addLinks(localTextView4, 1);
    localLinearLayout2.addView(localTextView4);
    TextView localTextView5 = q.a(r.a, paramContext);
    localTextView5.setText(com.paypal.android.a.j.a("ANDROID_forgot_password"));
    localLinearLayout2.addView(localTextView5);
    TextView localTextView6 = q.a(r.b, paramContext);
    localTextView6.setText(com.paypal.android.a.j.a("ANDROID_forgot_password_body"));
    Linkify.addLinks(localTextView6, 1);
    localLinearLayout2.addView(localTextView6);
    if (e.a().D())
    {
      TextView localTextView15 = q.a(r.a, paramContext);
      localTextView15.setText(com.paypal.android.a.j.a("ANDROID_help_fees_header"));
      localLinearLayout2.addView(localTextView15);
      TextView localTextView16 = q.a(r.b, paramContext);
      localTextView16.setText(com.paypal.android.a.j.a("ANDROID_help_fees_body"));
      Linkify.addLinks(localTextView16, 1);
      localLinearLayout2.addView(localTextView16);
    }
    TelephonyManager localTelephonyManager = (TelephonyManager)e.a().e().getSystemService("phone");
    String str1;
    String str2;
    if (localTelephonyManager.getPhoneType() == 1)
    {
      str1 = "IMEI";
      TextView localTextView7 = q.a(r.a, paramContext);
      localTextView7.setPadding(5, 1, 5, 2);
      localTextView7.setText(com.paypal.android.a.j.a("ANDROID_debug_support"));
      localLinearLayout2.addView(localTextView7);
      TextView localTextView8 = q.a(r.d, paramContext);
      localTextView8.setPadding(5, 1, 5, 2);
      localTextView8.setText(com.paypal.android.a.j.a("ANDROID_debug_version") + ": " + e.y());
      localLinearLayout2.addView(localTextView8);
      TextView localTextView9 = q.a(r.d, paramContext);
      localTextView9.setPadding(5, 1, 5, 2);
      localTextView9.setText(com.paypal.android.a.j.a("ANDROID_debug_build") + ": " + e.z());
      localLinearLayout2.addView(localTextView9);
      TextView localTextView10 = q.a(r.d, paramContext);
      localTextView10.setPadding(5, 1, 5, 2);
      localTextView10.setText(com.paypal.android.a.j.a("ANDROID_debug_platform") + ": " + "Android");
      localLinearLayout2.addView(localTextView10);
      TextView localTextView11 = q.a(r.d, paramContext);
      localTextView11.setPadding(5, 1, 5, 2);
      localTextView11.setText(com.paypal.android.a.j.a("ANDROID_debug_model") + ": " + Build.MODEL);
      localLinearLayout2.addView(localTextView11);
      TextView localTextView12 = q.a(r.d, paramContext);
      localTextView12.setPadding(5, 1, 5, 2);
      localTextView12.setText(com.paypal.android.a.j.a("ANDROID_debug_os") + ": " + Build.VERSION.RELEASE);
      localLinearLayout2.addView(localTextView12);
      switch (e.a().k())
      {
      case 1:
      default:
        str2 = "Live";
      case 0:
      case 2:
      case 3:
      }
    }
    while (true)
    {
      TextView localTextView13 = q.a(r.d, paramContext);
      localTextView13.setPadding(5, 1, 5, 2);
      localTextView13.setText(com.paypal.android.a.j.a("ANDROID_debug_server") + ": " + str2);
      localLinearLayout2.addView(localTextView13);
      TextView localTextView14 = q.a(r.d, paramContext);
      localTextView14.setPadding(5, 1, 5, 2);
      localTextView14.setText(str1 + ": " + localTelephonyManager.getDeviceId());
      localLinearLayout2.addView(localTextView14);
      localLinearLayout1.addView(localLinearLayout2);
      this.a = new Button(paramContext);
      this.a.setText(com.paypal.android.a.j.a("ANDROID_ok"));
      this.a.setLayoutParams(new RelativeLayout.LayoutParams(-1, f.b()));
      this.a.setGravity(17);
      this.a.setBackgroundDrawable(g.a());
      this.a.setTextColor(-16777216);
      this.a.setOnClickListener(this);
      LinearLayout localLinearLayout3 = new LinearLayout(paramContext);
      localLinearLayout3.setOrientation(1);
      localLinearLayout3.setLayoutParams(new RelativeLayout.LayoutParams(-1, -2));
      localLinearLayout3.setPadding(0, 15, 0, 0);
      localLinearLayout3.addView(this.a);
      localLinearLayout1.addView(localLinearLayout3);
      addView(localLinearLayout1);
      return;
      str1 = "MEID";
      break;
      str2 = "Sandbox";
      continue;
      str2 = "Demo";
      continue;
      str2 = "Stage (" + c.c() + ")";
    }
  }

  public final void d()
  {
  }

  public final void e()
  {
  }

  public final void onClick(View paramView)
  {
    if (paramView == this.a)
      h.a();
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.MEP.a.n
 * JD-Core Version:    0.6.2
 */